<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<?php echo $this->headTitle(); ?>
	<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/main.css'); ?>
</head>
<body>
<div class="container">
<div class="menu">
<ul class="nav">
	<li><a href="<?php echo $this->url(array('controller'=>'customer', 'action'=>'add'), null, true); ?>">Customer Registration</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'customer', 'action'=>'enquiry'), null, true); ?>">Customer Enquiry</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'product', 'action'=>'enquiry'), null, true); ?>">Product<br />Enquiry</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'order', 'action'=>'cart'), null, true); ?>">Create<br />Order</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'order', 'action'=>'enquiry'), null, true); ?>">Order<br />Enquiry</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'cep', 'action'=>'add'), null, true); ?>">Record<br />CEP</a></li>
	<li><a href="<?php echo $this->url(array('controller'=>'cep', 'action'=>'index'), null, true); ?>">Prepare<br />CDR</a></li>
	<li><?php echo $this->loggedInAs(); ?></li>	
</ul>
</div>
<?php
	$auth = Zend_Auth::getInstance();
	$cont = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
?>
<div class="contents">
<?php if ($auth->hasIdentity() || $cont == 'auth' || $cont == 'index') { ?>
<?php
		echo $this->layout()->content;
	} else {
		echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/index.css');
?>
		<div class="cont"><div class="logo"></div></div>
<?php
	}
?>
</div>
</div>
</body>
</html>